package com.xh.bussiness.teachbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * <p>
 *  讲义/备课模板id
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/9/2
 */
@Data
@Accessors(chain = true)
@TableName("bk_teaching_book_template")
public class TeachingBookTemplate  extends Model<TeachingBookTemplate> {
    /**
     * 主键ID , 这里故意演示注解可以无
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 模块名称
     */
    private String name;

    /**
     * 父节点id
     */
    private String parentId;

    /**
     * 层级
     */
    private Integer level;
    /**
     * 1.错题;2.课前回顾;3.知识点讲解与例题详解;4.课堂小结;5.课后练习
     */
    private Integer type;

    /**
     * 序号
     */
    private Integer orderNo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
